package com.lc.tgxm.activity;

import android.os.Bundle;
import android.view.WindowManager;

import com.lc.tgxm.BaseApplication;
import com.lc.tgxm.R;
import com.lc.tgxm.widget.GuideView;
import com.zcx.helper.pager.Guide;

/**
 *
 * Created by Administrator on 2016/3/14.
 */
public class GuideActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_guide);

        GuideView guideView = (GuideView) findViewById(R.id.guide_guide_view);

        guideView.addLayoutId(R.layout.item_guide_one, R.layout.item_guide_two, R.layout.item_guide_three);

        guideView.setOnEndListener(new Guide.OnEndListener() {

            @Override
            public void onEnd() {

                BaseApplication.basePreferences.saveIsGuide(true);

                getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
                startVerifyActivity(LoginActivity.class);

                finish();

            }

        });

    }

}
